<template>
  <div style="padding: 0 15px;" @click="toggleClick">
    <!--    <svg-->
    <!--      :class="{'is-active':isActive}"-->
    <!--      class="hamburger"-->
    <!--      viewBox="0 0 1024 1024"-->
    <!--      xmlns="http://www.w3.org/2000/svg"-->
    <!--      width="64"-->
    <!--      height="64"-->
    <!--    >-->

    <!--      <path d="M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 0 0 0-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0 0 14.4 7z" />-->
    <!--    </svg>-->
    <svg t="1609832079959" class="collapseIcon" :class="{'is-active':isActive}" viewBox="0 0 1024 1024" version="1.1"
         xmlns="http://www.w3.org/2000/svg" p-id="22096" width="200" height="200">
      <path
        d="M895.104 170.667h-766.25a43.563 43.563 0 1 0 0 87.125h766.293a43.563 43.563 0 1 0 0-87.125z m0 597.333h-766.25a43.563 43.563 0 1 0 0 87.125h766.293a43.563 43.563 0 1 0 0-87.125zM896 469.333H469.333a42.667 42.667 0 0 0 0 85.334H896a42.667 42.667 0 0 0 0-85.334zM147.84 426.24a21.333 21.333 0 0 0-35.712 15.915l1.195 179.2a21.333 21.333 0 0 0 34.986 16.213l101.974-85.205a21.333 21.333 0 0 0 0.725-32.128L147.84 426.24z"
        p-id="22097"></path>
    </svg>
  </div>
</template>

<script>
export default {
  name: 'collapseIcon',
  props: {
    isActive: {
      type: Boolean,
      default: false
    }
  },
  methods: {
    toggleClick() {
      this.$emit('toggleClick')
    }
  }
}
</script>

<style scoped>
.collapseIcon {
  display: inline-block;
  vertical-align: middle;
  width: 20px;
  height: 20px;
}

.collapseIcon.is-active {
  transform: rotate(180deg);
}
</style>
